package com.neuralnoise.flickr;

import org.apache.log4j.Logger;

import com.neuralnoise.AbstractCrawler;

public class FlickrCrawler extends AbstractCrawler<String> {

	private Logger logger = Logger.getLogger(this.getClass());
	
	public FlickrCrawler(FlickrDriver driver) {
		super(driver);
	}

	public static void main(String[] args) throws Exception {
		ParseArgs p = new ParseArgs(args);
		FlickrProperties properties = p.getProperties();

		FlickrDriver driver = new FlickrDriver(properties);
		String sid = properties.getStartUser();
		
		FlickrCrawler c = new FlickrCrawler(driver);
		c.breadthFirstGraphExploration(sid, properties.getMillis());
	}

}
